import request from '@/utils/request'

// 查询direct列表
export function listDirect(query) {
  return request({
    url: '/monitor/direct/list',
    method: 'get',
    params: query
  })
}

// 获取direct信息
export function getDirectInfo(query) {
  return request({
    url: '/monitor/direct/info',
    method: 'get',
    params: query
  })
}

// 查询direct详细
export function getDirect(directId) {
  return request({
    url: '/monitor/direct/' + directId,
    method: 'get'
  })
}

// 新增direct
export function addDirect(data) {
  return request({
    url: '/monitor/direct',
    method: 'post',
    data: data
  })
}

// 修改direct
export function updateDirect(data) {
  return request({
    url: '/monitor/direct',
    method: 'put',
    data: data
  })
}

// 删除direct
export function delDirect(directId) {
  return request({
    url: '/monitor/direct/' + directId,
    method: 'delete'
  })
}
